package com.mit.web.vo.design
{
	import com.mit.web.vo.BaseVO;
	import com.mit.web.vo.HistoryComparable;
	
	[Bindable]
	[RemoteClass(alias="com.mit.common.design.dto.TemplatePartDTO")]	
	public class TemplatePartVO extends BaseVO implements HistoryComparable
	{
		public var templateId:int;
		public var name:String;
		public  var measure:String;
		public var original:TemplatePartVO;
		
		public function TemplatePartVO()
		{
			super();
		}
		public function saveOriginal():void{
			original = new TemplatePartVO();
			original.name = name;
			original.measure = measure;
		}
		public function isChanged():Boolean{
			return (name == original.name
				&& measure == original.measure);
		}
	}
}